package com.vdf.sisconsolid.controller;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;

import com.vdf.sisconsolid.persistencemodule.dao.PersonDao;
import com.vdf.sisconsolid.persistencemodule.dto.KeyValueBean;
import com.vdf.sisconsolid.rest.requestresponsedata.ReqRespData;
import com.vdf.sisconsolid.rest.requestresponsedata.RequestAndRespondHandler;

public class PersonController {
	
	private static Logger log = Logger.getLogger(PersonController.class);

	public static Map<String, Object> processGetCivilStatus() {
		log.info("Into processGetCivilStatus()");
		List<KeyValueBean> civilStatusBeanList = new PersonDao()
				.getStatusCivilList();
		log.info("Size civilStatusBeanList: " + civilStatusBeanList.size());
		return RequestAndRespondHandler.getResponseRest(true,
				ReqRespData.data.toString(), "Loaded civilStatus",
				civilStatusBeanList);
	}

}
